<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateNwYbzVpcTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('nw_ybz_vpc', function (Blueprint $table) {
          // 名称
          $table->string('name');
          // 资源类型
          $table->string('resource_type');
          // 区域
          $table->string('region');
          // 所属资源集
          $table->string('resource_set_name');
          // 所属VDC
          $table->string('vdc');
          // resource_id
          $table->string('resource_id');
          // 申请订单号
          $table->string('order_number');
          // 所属资源组
          $table->string('resource_group');
          // 状态
          $table->string('status');
          // 网段
          $table->string('segment');
          // 可用分区
          $table->string('availability_zone');
          
          $table->id();
          $table->timestamps();
      });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('nw_ybz_vpc');
    }
}
